﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BSCMFF.Core.DataAccessLayer;

namespace BSCMFF.Web.UserControls.Evaluation
{
    public partial class AssignEmployeeEvaluator : System.Web.UI.UserControl
    {
        public int EvaluatorAssignedID { get; set; }
        private User _employee;

        public User Employee
        {
            get
            {
                if (_employee == null)
                {
                    _employee = new User();
                }
                return _employee;
            }
            set
            {
                _employee = value;
            }
        }

        public int EEEID { get; set; }

        public int? EvaluatorID 
        { 
            get
            {
                return ESS.SelectedUserID;
            }
            set
            {
                if (value != null)
                {
                    ESS.SelectedUserID = value;
                }
            }
        }

        public bool ButtonDeleteVisible 
        { 
            get
            {
                return LinkButtonDelete.Visible;
            }
            set
            {
                LinkButtonDelete.Visible = value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public event EventHandler LinkButtonDeleteEvent;
        protected void LinkButtonDelete_Click(object sender, EventArgs e)
        {
            //this.Visible = false;
            if (LinkButtonDeleteEvent != null)
            {
                LinkButtonDeleteEvent(this, e);
            }
        }
        
    }
}